import request from '@/utils/request'
// 获取储位统计
export function getStorageCount(region) {
  return request({
    url:  `/wms-admin/api/locateCount/${region}`,
    method: 'get'
  })
}

// 获取库存状态统计
export function getInventoryStatus(region) {
  return request({
    url: `/wms-admin/api/contCount/${region}`,
    method: 'get'
  })
}

// 获取区域库存统计
export function getStockDayCount(region) {
  return request({
    url: `/wms-admin/api/stockDay/${region}`,
    method: 'get'
  })
}

// 获取入库趋势
export function getInboundTrend() {
  return request({
    url: '/wms-admin/api/inCount',
    method: 'get'
  })
}

// 获取出库趋势
export function getOutboundTrend() {
  return request({
    url: '/wms-admin/api/outCount',
    method: 'get'
  })
}

// 获取工单辅料列表
export function getWorkOrderList() {
  return request({
    url: '/wms-admin/api/orderCount',
    method: 'get'
  })
}

// 获取全部库存状态统计
export function getAllInventoryStatus() {
  return request({
    url: '/wms-admin/api/contCount',
    method: 'get'
  })
}

// 获取全部库存状态统计
export function getStockCount(region) {
  return request({
    url: `/wms-admin/api/stockDay`,
    method: 'get'
  })
}

// 获取剩余库存统计
export function getRestStockCount() {
  return request({
    url: '/wms-admin/api/restCount',
    method: 'get'
  })
}